<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <ui:composition template="/header.xhtml">
            <ui:define name="menu">
                  <h:commandLink value="Inicio" action="/header.xhtml"/>
        </ui:define>
        <ui:define name="conteudo">
            <legend><i class="icon-edit"></i>Cadastro de perfil</legend>
            
                <h:inputHidden value="#{perfilMB.perfil.id}"/>
                <div style="margin-left: 45px;">
                    <h:panelGrid columns="1">

                        <h:outputLabel class="control-label">Id</h:outputLabel>
                        <h:inputText value="#{perfilMB.perfil.id}" class="input-large" required="true" readonly="true" />

                        <h:outputLabel class="control-label">Nome</h:outputLabel>
                        <h:inputText value="#{perfilMB.perfil.nome}" class="input-large" required="true"/>

                    </h:panelGrid>

                </div>
                <div class="form-actions">
                    <h:commandButton value="Salvar" action="#{perfilMB.salvar()}" class="btn btn-inverse  pull-right" onclick="return confirm('Deseja realmente salvar?')"></h:commandButton>
                    <h:commandButton value="Limpar" action="#{perfilMB.novo()}" class="btn  pull-left"></h:commandButton></div>
        </ui:define>
    </ui:composition>
</html>

